package org.p2psimulator.entity.protocol.messages.gnutella.p2prep;


import java.util.List;
import org.p2psimulator.entity.Message;
import org.p2psimulator.entity.Id;
import org.p2psimulator.entity.behavior.BehaviorTypes;
import org.p2psimulator.entity.protocol.messages.MessageTypes;

@SuppressWarnings ("unchecked")
public class P2PPoll  extends Message{


	public P2PPoll(Id origin, Id destination, int transactionId,
			BehaviorTypes originBehavior) {
		super(origin, destination, transactionId, originBehavior);
	}

	private List<Id> servent_ids;

	public List<Id> getServent_ids() {
		return servent_ids;
	}

	public void setServentIds(List<Id> servent_ids) {
		this.servent_ids = servent_ids;
	}


	public String getName(){
		return MessageTypes.P2P_POLL.getName();
	}

	@Override
	public MessageTypes getMessageType() {
		return MessageTypes.P2P_POLL;
	}
}
